import pandas as pd
import numpy as np
import seaborn as sns
import warnings
warnings.filterwarnings("ignore")
sns.set()
import matplotlib.pyplot as plt


def student():
    # ********* Begin *********#

    data = pd.read_csv("Task3/train.csv")
    f,ax = plt.subplots(2,2,figsize=(10,10))
    sns.countplot("Embarked",data=data,ax=ax[0,0])
    ax[0,0].set_title("No.Of Passengers Boarded")
    sns.countplot("Embarked",hue='Sex',data=data,ax=ax[0,1])
    ax[0,1].set_title("Male-Female Split for Embarked")
    sns.countplot("Embarked",hue='Survived',data=data,ax=ax[1,0])
    ax[1,0].set_title("Embarked vs Survived")
    sns.countplot("Embarked",hue='Pclass',data=data,ax=ax[1,1])
    ax[1,1].set_title("Embarked vs Pclass")
    plt.savefig("Task3/img/T1.jpg")

    # ********* End *********#
